package com.zheng.damo01.作业;

import java.util.Arrays;

public class Test10 {
    public static void main(String[] args) {
        String abc="342567891";
        char[] chars=abc.toCharArray();
        int[] arr=new int[chars.length];
        for (int i = 0; i < chars.length; i++) {
            arr[i]=chars[i];
        }
        Arrays.sort(arr);
        for (int i = 0; i < arr.length; i++) {
            chars[i]=(char) arr[i];
        }
        System.out.println(Arrays.toString(chars));
    }

}
